Skip to content

feat(release): add npm Package Contents Inspector#77

Merged
derek-palmer merged 1 commit into
mainfrom
feat/package-contents-inspector
May 29, 2026
Merged

feat(release): add npm Package Contents Inspector#77
derek-palmer merged 1 commit into
mainfrom
feat/package-contents-inspector

Conversation

@derek-palmer
Copy link
Copy Markdown
Owner

Closes #52.

What

Adds scripts/inspect_npm_package.py — a release-validation inspector that treats the packed npm tarball (npm pack output) as the interface under test, verifying published contents independent of any registry.

Checks:

  • Required files present: bin/install.js, package.json, install.sh, install.ps1, skills-lock.json
  • skills/ ships payloads
  • package.json exposes both bin entrypoints: codeforerunner, codeforerunner-install
  • Every skill declared in skills-lock.json (skillPath) is actually present in the tarball

Wired into release-pr.yml so contents are validated before any tagged publish.

Tests (TDD)

  • tests/test_inspect_npm_package.py — fixture tarballs (npm package/ prefix) drive each check; plus an end-to-end test that packs the real repo and asserts it passes (gated on npm availability).
  • tests/test_workflows_yaml.py — asserts release-pr invokes the inspector.

265 pytest + node suite green locally.

Out of scope

No registry publish, package-name, or auth changes (#48/#47/#46 own those).

🤖 Generated with Claude Code

Treat the packed npm tarball as a test surface: verify it ships the
installer entrypoints, both bin metadata aliases, the installer shims,
skills-lock.json, and every skill the lock declares — independent of any
registry publish. Wire into release-pr so contents are checked before a
tagged publish.

Closes #52
@derek-palmer derek-palmer merged commit 23a7062 into main May 29, 2026
10 checks passed
@derek-palmer derek-palmer deleted the feat/package-contents-inspector branch May 29, 2026 19:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add Package Contents Inspector for npm artifacts

1 participant